package com.pinda.service.impl;


import com.pinda.commonutils.Result;

import com.pinda.mapper.PdTaskPickupDispatchMapper;
import com.pinda.oms.entity.PdTickupAndOrderAndUser;
import com.pinda.service.IPdTaskPickupDispatchService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pinda.work.entity.PdTaskPickupDispatch;
import com.pinda.work.entity.PdTickupAndOrder;
import com.pinda.work.vo.Dispatch_Order;
import com.pinda.work.vo.PdTaskPickupDispatchView;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * <p>
 * 取件、派件任务信息表 服务实现类
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
@Service
public class PdTaskPickupDispatchServiceImpl extends ServiceImpl<PdTaskPickupDispatchMapper, PdTaskPickupDispatch> implements IPdTaskPickupDispatchService {

    @Resource
    private PdTaskPickupDispatchMapper pdTaskPickupDispatchMapper;

    @Override
    public PdTickupAndOrderAndUser findOrderone(String id) {
        return pdTaskPickupDispatchMapper.findOrderone(id);
    }

    @Override
    public PdTickupAndOrderAndUser findPickuppaiOne(String id) {
        return pdTaskPickupDispatchMapper.findPickuppaiOne(id);
    }

    @Override
    public List<PdTickupAndOrder> findTickupAndOrder(PdTickupAndOrder search) {
        return pdTaskPickupDispatchMapper.findTickupAndOrder(search);
    }

    @Override
    public List<PdTickupAndOrder> findTickupAndOrderpai(PdTickupAndOrder search) {
        return pdTaskPickupDispatchMapper.findTickupAndOrderpai(search);
    }

    @Override
    public List<PdTickupAndOrder> findTickupAndOrderquxiao() {
        return pdTaskPickupDispatchMapper.findTickupAndOrderquxiao();
    }

    @Override
    public List<Dispatch_Order> findDispatchByTaskType(String courierId) {
        return pdTaskPickupDispatchMapper.findDispatchByTaskType(courierId);
    }

    @Override
    public List<Dispatch_Order> findDispatchByTaskType3(String courierId) {
        return pdTaskPickupDispatchMapper.findDispatchByTaskType3(courierId);
    }


    /**
     * 根据快递员查询待收件
     * @param courierid
     * @return
     */
    @Override
    public List<Dispatch_Order> selectreceiving(String courierid) {
        return pdTaskPickupDispatchMapper.selectreceiving(courierid);
    }

    /**
     * 收件须交件
     * @param courierid
     * @return
     */
    @Override
    public List<Dispatch_Order> selectreceiving2(String courierid) {
        return pdTaskPickupDispatchMapper.selectreceiving2(courierid);
    }

    @Override
    public List<PdTaskPickupDispatchView> queryPdTaskPickupDispatchViewallService(String val) {
        return this.pdTaskPickupDispatchMapper.queryPdTaskPickupDispatchViewall(val);
    }

    @Override
    public List<Dispatch_Order> canceled(String courierid) {
        return pdTaskPickupDispatchMapper.canceled(courierid);
    }

    @Override
    public List<Dispatch_Order> findDispatchByCourierId(PdTaskPickupDispatch pdTaskPickupDispatch) {
        return pdTaskPickupDispatchMapper.findDispatchByCourierId(pdTaskPickupDispatch);
    }




}
